package com.book.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.book.utils.PageUtils;
import com.book.utils.Query;

import com.book.dao.BookEvaluationDao;
import com.book.entity.BookEvaluationEntity;
import com.book.service.BookEvaluationService;


@Service("bookEvaluationService")
public class BookEvaluationServiceImpl extends ServiceImpl<BookEvaluationDao, BookEvaluationEntity> implements BookEvaluationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BookEvaluationEntity> page = this.page(
                new Query<BookEvaluationEntity>().getPage(params),
                new QueryWrapper<BookEvaluationEntity>()
        );

        return new PageUtils(page);
    }

}